﻿using Battle.Net;
using NUnit.Framework;

namespace Aesha.wow.Api.Tests
{

    [TestFixture]
    public class SpellTests
    {
        public BattleNetConnection Connection { get; set; }

        [TestFixtureSetUp]
        public void Setup()
        {
            Connection = new BattleNetConnection(Host.Europe, Locale.en_GB)
                {
                    CacheConnectionString = Properties.Settings.Default.CacheConnectionString,
                    UseCache = true
                };
        }

        [Test]
        public void GetSpell()
        {
            var spell = Connection.Spells.GetSpell(108843);
            Assert.IsTrue(spell.Id == 108843);
        }
    }
}
